USE [MailSystem32]
GO

/****** Object:  StoredProcedure [dbo].[prcLoginv]    Script Date: 18/8/2012 2:54:40 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================

CREATE PROCEDURE [dbo].[prcLoginv] 
	-- Add the parameters for the stored procedure here
 @Username VarChar(50),
 @UPassword varChar(50),
 @OutRes int OUTPUT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	set @OutRes = (SELECT id FROM [dbo].tblCustomer
WHERE Email = @Username And Password = @UPassword)


END


GO


